<?php
use think\Route;
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------


// Route::rule('new/:id','Index/hello','GET');

// Route::get('new/:id','Index/hello');


return [
    '__pattern__' => [
        'name' => '\w+',	
    ],
    '[hello]'     => [
        ':id'   => ['Index/hello', ['method' => 'get'], ['id' => '\d+']],
        ':name' => ['index/hello', ['method' => 'post']],
    ],
    
    
	'new/:id'=> ['Index/hello',['method' => 'get|put'], ['id' => '\d+']],
	
   	
    
];
